Don't look for EXPOSE mask set to disable bg none setting
authorAlexander Larsson <alexl@redhat.com>
Tue, 27 Jan 2009 13:51:21 +0000 (14:51 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:28 +0000 (10:15 +0200)
We always set EXPOSE in the client-side-windows world, so this
doesn't make sense anymore.

gdk/x11/gdkwindow-x11.c

index 5acd69031d05f5f1f8c38b0fb80385d0dac08552..0557d5393614b8e635f0c9d3d84069bc8d8e70f9 100644 (file)
@@ -220,13 +220,6 @@ tmp_unset_bg (GdkWindow *window)
   obj = (GdkWindowObject *) window;
   impl = GDK_WINDOW_IMPL_X11 (obj->impl);
 
-  /* For windows without EXPOSURE_MASK, we can't do this
-   * unsetting because such windows depend on the drawing
-   * that the X server is going to do
-   */
-  if (!(obj->event_mask & GDK_EXPOSURE_MASK))
-    return;
-    
   impl->no_bg = TRUE;
 
   if (obj->bg_pixmap != GDK_NO_BG)
@@ -243,9 +236,6 @@ tmp_reset_bg (GdkWindow *window)
   obj = (GdkWindowObject *) window;
   impl = GDK_WINDOW_IMPL_X11 (obj->impl);
 
-  if (!(obj->event_mask & GDK_EXPOSURE_MASK))
-    return;
-    
   impl->no_bg = FALSE;
 
   if (obj->bg_pixmap == GDK_NO_BG)